	<script type='text/javascript'>
		jQuery(function(){

			//查看订单详情按钮
			$('#order_a').toggle(
			function(){
				$(this).removeClass('fold');
				$(this).addClass('unfold');
				$('#order_detail').show('slow');
			},
			function(){
				$(this).removeClass('unfold');
				$(this).addClass('fold');
				$('#order_detail').hide('slow');
			});

			//修改支付方式按钮
			$('#payment_a').toggle(
			function(){
				$(this).removeClass('fold');
				$(this).addClass('unfold');
				$('#payment_type').show('slow');
			},
			function(){
				$(this).removeClass('unfold');
				$(this).addClass('fold');
				$('#payment_type').hide('slow');
			});
		});

		//修改支付方式
		function edit_payment(pound,pound_type)
		{
			var pound      = parseFloat(pound);
			var pound_type = parseInt(pound_type);
			var final_sum  = parseFloat('{echo:$this->final_sum - $this->payment_fee}');

			if(pound_type == 1)
			{
				var payment_fee = mathMul(final_sum,(pound/100));
			}
			else
			{
				var payment_fee = pound;
			}
			$('#final_sum').html(mathAdd(final_sum,payment_fee));
		}
	</script>

	<div class="wrapper clearfix">
		<div class="position mt_10"><span>您当前的位置：</span> <a href="{url:}"> 首页</a> » 成功提交订单</div>
		<div class="myshopping m_10">
		  <ul class="order_step">
			<li><span class="first">1、查看购物车</span></li>
			<li class="current_prev"><span>2、填写核对订单信息</span></li>
			<li class="last_current"><span>3、成功提交订单</span></li>
		  </ul>
		</div>
		<div class="cart_box m_10">
			<div class="title">成功提交订单</div>
			<div class="cont">
				{if:$this->user['user_id']}
				{set:$tmpId=$this->order_id;}
				<p class="order_stats"><a href="{url:/ucenter/order_detail/id/$tmpId}" class="f_r blue">查看订单状态</a><img width="48" height="51" alt="" src="{skin:images/front/right.gif}"><strong class="f14">订单已提交</strong></p>
				{/if}
				<div class="stats_box">
					<h3>订单信息</h3>
					<table width="100%" class="form_table t_l orange">
						<col width="75" />
						<col />
						<tr><th>订单编号：</th><td class="f18 bold red2">{$this->order_num}</td></tr>
						<tr><th>订单金额：</th><td class="f18 bold red2">￥<b id='final_sum'>{$this->final_sum}</b></td></tr>
						<tr><th>备货时间：</th><td class="f18 bold red2">{$this->stockup_time} 天</td></tr>
					</table>

					<a class="fold" href="javascript:void(0)" id='order_a'>[查看订单详细信息]</a>

					<div class="blue_box gray m_10" id='order_detail' style='display:none'>
						<table class="form_table t_l">
							<col width="" />
							<col />
							<tr><td class="t_r">你的订单编号：</td><td class="bold red">{$this->order_num}</td></tr>
							<tr><td class="t_r">应付金额：</td><td><span class="bold red">￥{$this->final_sum}</span> 元</td></tr>
							<tr><td class="t_r">支付方式：</td><td>{$this->payment}</td></tr>
							<tr><td class="t_r">配送方式：</td><td>{$this->delivery}</td></tr>
							{if:$this->tax_title!=''}
							<tr><td class="t_r">发票抬头：</td><td>{$this->tax_title}</td></tr>
							{/if}
						</table>
					</div>

					<h3>订单支付</h3>
					<table width="100%" class="form_table t_l orange">
						<col width="75" />
						<col />
						<tr><th>您选择了：</th><td class="f18 bold red2">{$this->payment}</td></tr>
						{if:$this->paymentNote != ''}
						<tr><th>支付说明：</th><td class="f18 bold red2">{$this->paymentNote}</td></tr>
						{/if}
					</table>

					<!--不是货到付款并且支付方式为线上支付-->
					{if:$this->deliveryType == 0 && $this->paymentType == 1}
					{set:$tmpId=$this->order_id;}
					<form action='{url:/simple/do_pay/order_id/$tmpId}' method='post' target='_blank'>
					<a class="fold" href="javascript:void(0)" id='payment_a'>[选择了其他支付方式]</a>
					<div class="blue_box m_10" id='payment_type' style='display:none'>
						<table width="100%" class="border_table t_l gray">
							<col width="200" />
							<col />

							{if:$this->user['user_id']}
							{query:name=payment order=`order` asc where = type eq 1 and status eq 0 items = $paymentList /}
							{else:}
							{query:name=payment as p join = left join pay_plugin as pp on (p.plugin_id eq pp.id) fields=p.* order=p.order asc where=p.type eq 1 and p.status eq 0 and pp.file_path neq 'balance' items = $paymentList /}
							{/if}

							{foreach:items=$paymentList}
							<tr>
								<th><label><input class="radio" name="payment" onclick="edit_payment('{$item['poundage']}','{$item['poundage_type']}');" type="radio" value="{$item['id']}" /> {$item['name']}</label></th>
								<td>{$item['description']} 手续费：{if:$item['poundage_type']==2}￥{$item['poundage']}{else:}{$item['poundage']}%{/if}</td>
							</tr>
							{/foreach}

						</table>
					</div>
					<input class="submit_pay" type="submit" value="立即支付" />
					</form>
					{/if}
				</div>
			</div>
		</div>
	</div>